from django.conf.urls.defaults import *
from l2ldjango.apps.usermanagement.views import *
from l2ldjango.apps.lawschool.views import *


urlpatterns = patterns('',
	#(r'^/login/$', 'django.contrib.auth.views.login'),
	(r'^/login/$', userLogin),
	(r'^/login/inactive/$', inactive_user),
	(r'^/dashboard/$', showDashboard),	
	(r'^/logout/$', userLogout),
	(r'^/delete-account/$', deleteAccount),
	(r'^/attorney-registration/$', register_page_attorney),
	(r'^/attorney-registration/success/$', successfully_registered),
	(r'^/student-registration/$', register_page_student),
	(r'^/getattorneys/$', getAttorneys),
	(r'^/getusers/$', getUsers),
	(r'^/getstudents/$', getStudents),
	(r'^/getmyfriends/$', getMyFriends),	
	(r'^/enable/([\w\.-]+)$', enableUser),
	(r'^/validateusernameexistence/$',validateUsernameExistence),	
	(r'^/validateusernameexistence/([\w\.-]+)$',validateUsernameExistence),
	(r'^/validateemailexistence/$',validateEmailExistence),	
	(r'^/validateemailexistence/([\w\.-]+)$',validateEmailExistence),	
	(r'^/validatezipexistence/$',validateZipExistence),
	(r'^/validateusernamedoesnotexist/$',validateUsernameDoesnotExist),	
	(r'^/validateemailexistencestudent/$',validateEmailExistenceStudent),
	(r'^/validateemaildoesnotexist/$',validateEmailDoesnotExist),			
	(r'^/checkLawschool/$',checkLawschool),
	(r'^/sendverification/$',sendVerification),
	(r'^/verification/([\w\.-]+)$',userVerification),	
	(r'^/my-profile/$',myProfile),
	(r'^/view-profile/([\w\.-]+)$',viewProfile), #Previous dev forgot trailing slashes. The guy was an idiot. Ughhh /chris
	(r'^/view-profile/([\w\.-]+)/$',viewProfile),
	(r'^/edit-profile/$', editUserProfile), 
	(r'^/checkpassword/$', checkPassword), 
	(r'^/fbconnect/$',register_facebook),
	(r'^/fbsave/$',saveFbAddtionalInfo),
	(r'^/account-settings/$',accountSettings),
	(r'^/add-external-link/$',addExternalLink),	
	(r'^/lawyer-directory/$',lawyerDirectory),
	(r'^/filter-lawyer-directory/$',filterLawyerDirectory),
	(r'^/addtofavourite/([\w\.-]+)$',addToFavourite),		
	(r'^/privacy-settings/$',privacySettings),	
	(r'^/view-my-favourites/$',viewMyFavourites),
	(r'^/notifications/$',viewNotifications),	
	(r'^/change-password/$',changePassword),
	(r'^/forgot-password/$',user_forgotpwd),
	(r'^/firstname/$',firstName),	
	(r'^/uploadmore/$',uploadmore),
	(r'^/changeprofpic/$',changeprofpic),
	(r'^/deleteprofpic/$',deleteprofpic),
	#membership
	(r'^/payment-accepted/$',paymentAccepted),
	(r'^/abort-membership/$',abortMembership),	
	(r'^/premium-membership/$',premiumMembership),
	#referrals
	(r'^/send-referral-form/([\w\.-]+)$',sendReferralForm),		
	(r'^/send-referral/$',sendReferral),	
	#friends
	(r'^/friends/$',userListing),
	(r'^/unfriend/([\w\.-]+)$',unFriend),
	(r'^/send-friend-request/([\w\.-]+)$',sendFriendRequest),	
	(r'^/accept-friend/([\w\.-]+)$',acceptFriend),
	(r'^/decline/([\w\.-]+)$',declineFriend),
	(r'^/search-friends/$',searchFriend),	
	(r'^/view-my-friends/$',viewMyFriends),
	(r'^/invite-friends/$',inviteFriends),
	#bookmark
	(r'^/bookmark-personalblog/([\w\.-]+)$',savePersonalBookmark),
	(r'^/bookmark-legalblog/([\w\.-]+)$',saveSiteBookmark),
	(r'^/bookmark-category/([\w\.-]+)$',saveCategoryBookmark),
	(r'^/list-library/$',listLibrary),
	(r'^/law-students/$',lawStudents),
)